package com.tyut.farmerservice.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李陈星
 * @since 2025-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order")
@ApiModel(value="TbOrder对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty(value = "需求标题")
    private String title;

    @ApiModelProperty(value = "期望价格")
    private BigDecimal price;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "订单状态，0表示待合作，1表示待发货，2表示完成，3表示完成但未评价")
    private Integer orderStatus;

    @ApiModelProperty(value = "1销售订单，2需求订单")
    private String type;

    private String picture;

    @ApiModelProperty(value = "发起订单人")
    private String ownName;

    @ApiModelProperty(value = "合作人名字")
    private String cooperationName;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @ApiModelProperty(value = "订单收货地址")
    private String address;


}
